<template>
  <div>
    <van-nav-bar
      title="秦务员"
      left-text=""
      right-text="···"
      left-arrow
      @click-left="funa()"
    />
    <div id="nav">
      <div id="navzi">
        <div class="navbox">
          <ul>
            <li v-for="(v, i) in lysx" :key="i" @click="fun(v.url)">
              <p><img :src="v.imgUrl" /></p>
              <p class="toptex">{{ v.title }}</p>
            </li>
          </ul>
        </div>
      </div>
    </div>
    <div class="lunb">
      <img src="../../../../public/lifeimg/sx1.png" alt="" />
    </div>
  </div>
</template>

<script>
export default {
  props: ["lysx"],
  methods: {
    fun(url) {
      // 编程式方式进行----路由跳转
      this.$router.push(url);
    },
    funa() {
      this.$router.push("/life");
    },
  },
};
</script>
<style lang="less" scoped>
h1 {
  width: 100%;
  height: 0.3rem;
  background-color: #0f68b7;
  width: 100%;
  font-size: 0.14rem;
  color: #fff;
  padding: 0 0.1rem;
  position: flex;
  top: 0;
}
#nav {
  width: 100%;
  display: flex;
  overflow: hidden;
  height: 2.8rem;
}
#navzi {
  width: 100%;
  height: 1.57rem;
  background-image: url(../../../../public/lifeimg/sxly.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.lunb {
  width: 95%;
  margin: auto;
}
.lunb img {
  width: 100%;
}
.navbox {
  width: 92%;
  height: 1.6rem;
  background-color: #fff;
  border-radius: 0.1rem;
  margin: auto;
  margin-top: 1rem;
  box-shadow: 1px 1px 5px #909090;
}
ul {
  display: flex;
  height: 100%;
  flex-wrap: wrap;

  li {
    width: 25%;
    text-align: center;
    font-size: 0.1rem;
    align-items: center;
    margin-top: 0.1rem;

    p {
      span {
        font-size: 0.3rem;
      }
    }
  }
}
.toptex {
  margin-top: 0.0067rem;
}
img {
  width: 45%;
}
</style>